<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="https://at.alicdn.com/t/c/font_4233430_f91617ia5ju.css">
</head>

<body>
    <i class="iconfont icon-sousuo"></i>
    <img src="https://img20.360buyimg.com/babel/s1180x940_jfs/t1/224142/38/2511/97756/6549df39F106d9a07/9ea0badbf179e981.png.avif"
        alt="">

</body>
<script>
    // 跨域方法2: jsonp 
    // 原理: 引入资源(link script img)不受同源策略的影响


</script>
<!-- <script src="../js/1.js"></script> -->

<!-- script脚本载入外部文件时(发送http请求),会将载入的内容放到脚本中作为JS语句执行 -->
<script type="text/javascript" src="http://localhost:3000/goods/jsonp"></script>

<!-- 等价于 -->
<!-- <script>
    for (var i = 1; i <= 100; i++) {
        console.log(i)
    }
</script> -->

</html>